<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<section>
	<article>
		<s:property value="article.id" />

		<h1>
			<s:property value="article.name" />
		</h1>
		<label><s:text name="content.articleCategory" /></label>
		<s:a href="#">
			<s:property value="article.category.name" />
		</s:a>
		<div class="content">
			<p>
				<s:property value="article.content" />
			</p>
		</div>
	</article>
	<hr />
	<s:iterator value="article.commentList">

		<s:property value="id" />
		<br />
		<h2>
			<s:property value="name" />
		</h2>
		<div class="commentContent">
			<s:property value="content" />
		</div>
	</s:iterator>
	<div>



		<s:if test="#session.user.role > 0 ">
			<s:include value="../comment/publicationEditor.jsp"></s:include>
		</s:if>

		<s:else>
			<s:url id="go" value="/jsp/templates/frontOffice/hright-front.jsp" />
			<sj:dialog href="%{go}" id="loginPopup" autoOpen="false" modal="true"
				title="%{getText('loginForm.authentication')}" resizable="false">

			</sj:dialog>
			<sj:submit openDialog="loginPopup"
				value="%{getText('content.addComment')}" button="true" />
		</s:else>

	</div>

</section>